package com.learn.sc.springbootdemo.pojo;

import lombok.Data;

@Data
public class RetDataBean<T> {
    //返回码
    String retCode;
    //返回数据
    T retData;
    //返回信息
    String retMsg;

    public RetDataBean(){}

    public RetDataBean(String retCode){
        this.retCode =retCode;
    }

    public RetDataBean(String retCode,String retMsg){
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public RetDataBean(String retCode,String retMsg,T retData){
        this.retCode = retCode;
        this.retData = retData;
        this.retMsg = retMsg;
    }
}
